<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class ModifyDaysColumnInStageTable extends AbstractMigration
{
    public function up()
    {
        $this->table("stage")
            ->changeColumn("days", "integer", [
                'default' => 0,
                'null' => false,
                'signed' => false,
                'comment' => '天数'
            ])
            ->save();
    }

    public function down()
    {
        $this->table("stage")
            ->changeColumn("days", "integer", [
                'null' => false,
                'signed' => false,
                'comment' => '天数'
            ])
            ->save();
    }
}
